package com.qiang.test01;

import java.io.FileInputStream;
import java.io.IOException;

public class Demo09 {
    public static void main(String[] args) {
        FileInputStream pf = null;
        try {
            pf = new FileInputStream("aa.txt");
            //int read = pf.read();
            int read;
            while ((read = pf.read())!=-1){
                System.out.println((char) read);
                //read = pf.read();
            }
        } catch (IOException e) {
            e.printStackTrace();
        } finally {
            if (pf != null) {
                try {
                    pf.close();
                    pf = null;
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }

        }
    }
}
